package com.sh.business.domain.vo;

import com.sh.common.translation.constant.TransConstant;
import com.sh.common.translation.annotation.Translation;
import com.sh.business.domain.Banner;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.sh.common.excel.annotation.ExcelDictFormat;
import com.sh.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * banner视图对象 bms_banner
 *
 * @author ruoyi
 * @date 2024-10-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Banner.class)
public class BannerVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 语言
     */
    private String language;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private String pictures;

    /**
     * 图片Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "pictures")
    private String picturesUrl;
    /**
     * banner类型
     */
    @ExcelProperty(value = "banner类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "biz_banner_type")
    private String type;

    /**
     * 链接类型(0:内链 1:外链)
     */
    @ExcelProperty(value = "链接类型(0:内链 1:外链)", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "biz_link_type")
    private Integer linkType;

    /**
     * 链接内容
     */
    @ExcelProperty(value = "链接内容")
    private String linkUrl;

    private Date createTime;
}
